package com.wyl.condition.query;

import com.wyl.enumeration.ConditionComposeOperatorEnum;

import java.util.List;

/**
 * @author 吴宇亮 on 2023/4/21 9:11
 */
public class ConditionGroup implements Condition {

    private ConditionComposeOperatorEnum operator = ConditionComposeOperatorEnum.and;

    private List<Condition> conditions;

    public ConditionComposeOperatorEnum getOperator() {
        return operator;
    }

    public ConditionGroup setOperator(ConditionComposeOperatorEnum operator) {
        this.operator = operator;
        return this;
    }

    public List<Condition> getConditions() {
        return conditions;
    }

    public ConditionGroup setConditions(List<Condition> conditions) {
        this.conditions = conditions;
        return this;
    }
}
